home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 9334 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.6 KB

  1. Path: detroit.freenet.org!ab411
  2. From: ab411@detroit.freenet.org (David R. Conrad)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: [Q]Is there any API that move a directory to another (drive 's) directory ?
  5. Date: 9 Mar 1996 15:08:50 GMT
  6. Organization: Greater Detroit Free-Net, Detroit, MI
  7. Message-ID: <4hs6u2$5d8@detroit.freenet.org>
  8. References: <Pine.A32.3.91.960221224211.44553F-100000@red.weeg.uiowa.edu> <312BCF42.6629@star.lgsw.re.kr>
  9. Reply-To: ab411@detroit.freenet.org (David R. Conrad)
  10. NNTP-Posting-Host: detroit.freenet.org
  11.  
  12.  
  13. In a previous article, robinson@blue.weeg.uiowa.edu (The Amorphous Mass) says:
  14. >On Thu, 22 Feb 1996, Hyung keun Hong wrote:
  15. >> For example,  I want to implement 
  16. >> function of  moving C:\office\aaaa directory to  D:\office\bbbb simply.
  17. >> Is there any API  that implements  this spec ?
  18. >...
  19. >  The comp.lang.c answer would be something like 
  20. >
  21. >  system("COPY C:/OFFICE/AAAA/*.* D:/OFFICE/BBBB");
  22. >  system("DEL C:/OFFICE/AAAA/*.*");
  23. >/* you can use / instead of \\ since system() bypasses COMMAND.COM */
  24.  
  25. Huh?  system() runs COMMAND.COM (well, I hope it runs whatever COMSPEC
  26. points to).  Besides, if it did bypass COMMAND.COM then what you write
  27. above wouldn't work since COPY and DEL are internal COMMAND.COM commands.
  28.  
  29. Off topic for comp.lang.c, though.
  30. -- 
  31. David R. Conrad, conrad@detroit.freenet.org   PGP key on    GDFN Hardware and
  32. http://detroit.freenet.org/staff/conrad        home page   Software Committee
  33. "If you can't say 'fuck', you can't say 'fuck the government'." --Lenny Bruce
  34. "We had to destroy the Global Electronic Village in order to save it." --Exon
  35.